package cn.schoolwow.quickdao.test.module.business.user.dml.user.testcase.update;

import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.edit.common.CheckUpdateUserResultFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.edit.update.UpdateUserByUniqueKeyFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.testcase.AddUserTestCaseFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class UpdateUserByUniqueKeyTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new AddUserTestCaseFlow())
                .next(new UpdateUserByUniqueKeyFlow())
                .next(new CheckUpdateUserResultFlow())
                .execute();
    }

    @Override
    public String name() {
        return "根据唯一性约束更新用户测试用例";
    }
}
